home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMaximum
- Caption = "Maximum"
- ClientHeight = 2460
- ClientLeft = 2130
- ClientTop = 1635
- ClientWidth = 3135
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2460
- ScaleWidth = 3135
- Begin VB.TextBox txtFirstNum
- Height = 285
- Left = 1320
- TabIndex = 1
- Top = 240
- Width = 1335
- End
- Begin VB.PictureBox picResult
- Height = 255
- Left = 120
- ScaleHeight = 195
- ScaleWidth = 2835
- TabIndex = 5
- Top = 2040
- Width = 2895
- End
- Begin VB.CommandButton cmdFindLarger
- Caption = "Find Larger Number"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 1320
- Width = 2895
- End
- Begin VB.TextBox txtSecondNum
- Height = 285
- Left = 1320
- TabIndex = 3
- Top = 840
- Width = 1335
- End
- Begin VB.Label lblSecondNum
- Alignment = 1 'Right Justify
- Caption = "Second Number"
- Height = 495
- Left = 360
- TabIndex = 2
- Top = 720
- Width = 735
- End
- Begin VB.Label lblFirstNum
- Alignment = 1 'Right Justify
- Caption = "First Number"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 120
- Width = 735
- End
- Attribute VB_Name = "frmMaximum"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdFindLarger_Click()
- picResult.Cls
- If Val(txtFirstNum.Text) > Val(txtSecondNum.Text) Then
- picResult.Print "The larger number is"; txtFirstNum.Text
- ElseIf Val(txtSecondNum.Text) > Val(txtFirstNum.Text) Then
- picResult.Print "The larger number is "; txtSecondNum.Text
- Else
- picResult.Print "The two numbers are equal."
- End If
- End Sub
-